<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<%=request.getSession().getAttribute("user")%>
<%
	if (request.getSession().getAttribute("user") == null) {
		response.sendRedirect(request.getContextPath() + "/login.jsp");
	}
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<tiles:insertAttribute name="meta" />
<script type="text/javascript" src="${ctx}/scripts/his_custom.js"></script>
<script type="text/javascript" src="${ctx}/scripts/pagination.js"></script>
<script type="text/javascript" src="${ctx}/scripts/jquery-1.3.2.min.js"></script>
<script type="text/javascript"
	src="${ctx}/scripts/datePicker/WdatePicker.js"></script>

<link rel="stylesheet" type="text/css" media="screen"
	href="${ctx}/styles/datePicker.css" />
<link rel="stylesheet" href="${ctx}/styles/default.css" type="text/css"
	media="screen" />
<link rel="stylesheet" href="${ctx}/styles/table.css" type="text/css"
	media="screen" />
<link rel="stylesheet" href="${ctx}/styles/form.css" type="text/css"
	media="screen" />
<link rel="stylesheet" href="${ctx}/styles/pager.css" type="text/css"
	media="screen" />
<title><tiles:getAsString name="title" /></title>
</head>
<body>
<div id="wrapper">
<div id="header"><tiles:insertAttribute name="header" /></div>
<div id="toolbar"><tiles:insertAttribute name="toolbar" /></div>
<div id="container">
<div id="sidebar"><tiles:insertAttribute name="sidebar" /></div>
<div id="container-margin"></div>
<div id="content"><tiles:insertAttribute name="content" /></div>
</div>
<div id="footer"><tiles:insertAttribute name="footer" /></div>
</div>
</body>
</html>
